package cn.stylefeng.guns.modular.transport.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 调度单表
 */
@Data
@TableName("t_dispatch")
public class TDispatch implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 运输状态（待定价、待审核、待发运、运输中、已完成）
     */
    @TableField("tstate")
    private String tstate;

    /**
     * 项目id
     */
    @TableField("operate_id")
    private Long operateId;

    /**
     * 所属项目
     */
    @TableField("operate_name")
    private String operateName;
    
    /**
     * 结算类型
     */
    @TableField("settlement_type")
    private String settlementType;

    /**
     * 线路
     */
    @TableField("line_name")
    private String lineName;

    /**
     * 承运方式
     */
    @TableField("chengyunfangshi")
    private String chengyunfangshi;

    /**
     * 承运类型
     */
    @TableField("chengyunleixing")
    private String chengyunleixing;

    /**
     * 承运商id
     */
    @TableField("carrier_id")
    private Long carrierId;

    /**
     * 承运商
     */
    @TableField("carrier_name")
    private String carrierName;

    /**
     * 车辆id
     */
    @TableField("car_id")
    private Long carId;

    /**
     * 车型
     */
    @TableField("chexing")
    private String chexing;

    /**
     * 准载量
     */
    @TableField("zhunzailiang")
    private String zhunzailiang;

    /**
     * 司机
     */
    @TableField("siji")
    private String siji;

    /**
     * 司机电话
     */
    @TableField("sijidianhua")
    private String sijidianhua;

    /**
     * 要求发车时间
     */
    @TableField("yaoqiushijian")
    private String yaoqiushijian;

    /**
     * 要求到达时间
     */
    @TableField("daodashijian")
    private String daodashijian;

    /**
     * 调度员
     */
    @TableField("dianduyuan")
    private String dianduyuan;

    /**
     * 结算对象
     */
    @TableField("payee")
    private String payee;

    /**
     * 开户行
     */
    @TableField("bank")
    private String bank;

    /**
     * 开户地
     */
    @TableField("bank_address")
    private String bankAddress;

    /**
     * 银行账号
     */
    @TableField("bank_account")
    private String bankAccount;

    /**
     * 联行号
     */
    @TableField("bank_no")
    private String bankNo;

    /**
     * 结算周期
     */
    @TableField("cycle")
    private String cycle;

    /**
     * 油卡号
     */
    @TableField("oil_card_number")
    private String oilCardNumber;

    /**
     * 卸车费
     */
    @TableField("xiechefei")
    private String xiechefei;

    /**
     * 结算对象
     */
    @TableField("payee_x")
    private String payeeX;

    /**
     * 开户行
     */
    @TableField("bank_x")
    private String bankX;

    /**
     * 开户地
     */
    @TableField("bank_address_x")
    private String bankAddressX;

    /**
     * 银行账号
     */
    @TableField("bank_account_x")
    private String bankAccountX;

    /**
     * 联行号
     */
    @TableField("bank_no_x")
    private String bankNoX;

    /**
     * 结算周期
     */
    @TableField("cycle_x")
    private String cycleX;

    /**
     * 付款备注
     */
    @TableField("settlement_notes")
    private String settlementNotes;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    
    
    

    /**
     * 是否web派车
     */
    @TableField("pai_type")
    private String paiType;

    /**
     * 车次
     */
    @TableField("train_number")
    private String trainNumber;

    /**
     * 审核人
     */
    @TableField("examine_name")
    private String examineName;

    /**
     * 审核时间
     */
    @TableField("examine_times")
    private String examineTimes;

    /**
     * 审核内容
     */
    @TableField("examine_nodes")
    private String examineNodes;

    /**
     * 调度单号
     */
    @TableField("dispatch_number")
    private String dispatchNumber;

    /**
     * 货运订单号
     */
    @TableField("transport_number")
    private String transportNumber;

    /**
     * 客户单号
     */
    @TableField("customer_order")
    private String customerOrder;

    /**
     * 车牌号
     */
    @TableField("carnumber")
    private String carnumber;

    /**
     * 回单状态
     */
    @TableField("return_tstate")
    private String returnTstate;

    /**
     * 回单时间
     */
    @TableField("return_time")
    private String returnTime;

    /**
     * 结算状态
     */
    @TableField("settlement_tstate")
    private String settlementTstate;

    /**
     * 合计数量
     */
    @TableField("toonum")
    private String tooNum;

    /**
     * 合计体积
     */
    @TableField("toovolume")
    private String toovolume;

    /**
     * 合计货值
     */
    @TableField("toomoney")
    private String toomoney;

    /**
     * 是否生成运费
     */
    @TableField("calculate_shipping_cost")
    private String calculateShippingCost;

    /**
     * 参考金额
     */
    @TableField("consult_money")
    private String consultMoney;

    /**
     * 运费
     */
    @TableField("freight_money")
    private String freightMoney;

    /**
     * 付款金额
     */
    @TableField("money")
    private String money;

    /**
     * 满载率
     */
    @TableField("fulllv")
    private String fulllv;

    /**
     * 是否取轨迹
     */
    @TableField("guiji")
    private String guiji;

    /**
     * 发车日期
     */
    @TableField("start_date")
    private String startDate;

    /**
     * 行驶里程
     */
    @TableField("mileage_traveled")
    private String mileageTraveled;

    /**
     * 实际里程
     */
    @TableField("mileage_traveled_yy")
    private String mileageTraveledYy;

    /**
     * 停留次数
     */
    @TableField("remain")
    private String remain;

    /**
     * 装车方
     */
    @TableField("loading_type")
    private String loadingType;

    /**
     * 装车工号
     */
    @TableField("loading_number")
    private String loadingNumber;

    /**
     * 装车人员
     */
    @TableField("loading_personnel")
    private String loadingPersonnel;

    /**
     * 装车费
     */
    @TableField("loading_money")
    private String loadingMoney;

    /**
     * 收货客户
     */
    @TableField("get_units")
    private String getUnits;

    /**
     * 装载照片文件id
     */
    @TableField("zhuangzai_fileid")
    private String zhuangzaiFileid;

    /**
     * 装载照片文件id
     */
    @TableField("fengche_fileid")
    private String fengcheFileid;

    /**
     * 发运时间
     */
    @TableField("fayun_times")
    private String fayunTimes;

    /**
     * 完成人
     */
    @TableField("complete_name")
    private String completeName;

    /**
     * 完成时间
     */
    @TableField("complete_times")
    private String completeTimes;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 新零帮发车单id
     */
    @TableField("xlb_depart_order_id")
    private String xlbDepartOrderId;

    /**
     * 提报状态
     */
    @TableField("state_tb")
    private String stateTb;


    @TableField("state_tb_time")
    private Date stateTbTime;

    @TableField("rec_state")
    private String recState;

    @TableField("app_st")
    private String appSt;

    @TableField("sgin_key")
    private String sginKey;

    @TableField("sgin_url")
    private String sginUrl;

	@Override
    public String toString() {
        return "TDispatch{" +
        "id=" + id +
        ", dispatchNumber=" + dispatchNumber +
        ", transportNumber=" + transportNumber +
        ", customerOrder=" + customerOrder +
        ", carnumber=" + carnumber +
        ", tstate=" + tstate +
        ", tooNum=" + tooNum +
        ", toovolume=" + toovolume +
        ", version=" + version +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        ", recState=" + recState +
        "}";
    }
}
